package cn.lx;

/**
 * @author lixin
 * @Classname ConcreteMediator
 * @Description TODO
 * @Date 2019/10/7 上午9:58
 */
public class ConcreteMediator extends Mediator {
    @Override
    public void doSomething1() {
        // 调用同事类的方法，只要是public类的方法都可以
        super.c1.selfMethod1();
        super.c2.depMethod2();
    }

    @Override
    public void doSomething2() {
        super.c1.selfMethod1();
        super.c2.depMethod2();

    }
}
